<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
	<title>客户资源管理系统</title>
	<!-- 标签图标设置 -->
	<link rel="icon" href="${pageContext.request.contextPath }/images/favicon.ico" type="image/ico">
	<!-- SEO（搜索引擎所有关键件） -->
	<meta name="keywords" content="crm,qf">
	<meta name="description" content="这是一个解决中小企业客户资源管理的网站">
	<meta name="author" content="枫桥夜泊1990">
	<link href="${pageContext.request.contextPath }/css/bootstrap.min.css" rel="stylesheet">
	<link href="${pageContext.request.contextPath }/css/materialdesignicons.min.css" rel="stylesheet">
	<link href="${pageContext.request.contextPath }/css/style.min.css" rel="stylesheet">
	<link rel="stylesheet" href="${pageContext.request.contextPath }/js/jconfirm/jquery-confirm.min.css">
</head>
  
<body>
<%
	Integer empId = (Integer)session.getAttribute("empId");
	String employeeName = (String)session.getAttribute("empName");
	if(empId==null || employeeName==null){
		response.sendRedirect("index.jsp");
	}
%>
<div class="lyear-layout-web">
  <div class="lyear-layout-container">
    <!--左侧导航-->
    <aside class="lyear-layout-sidebar">
      
      <!-- logo -->
      <div id="logo" class="sidebar-header">
        <a href="${pageContext.request.contextPath }/HomeServlet"><img src="${pageContext.request.contextPath }/images/logo-sidebar.png" title="LightYear" alt="LightYear" /></a>
      </div>
      <div class="lyear-layout-sidebar-scroll"> 
        
        
        <!-- 侧边栏开始 -->
        <jsp:include page="common/menus.jsp"></jsp:include>
        <!-- 侧边栏结束 -->
        
        
         <div class="sidebar-footer">
           <p class="copyright">Copyright &copy; 2020. <img style="width: 25px;padding-bottom: 5px;" src="images/fy.png" /> <a target="_blank" href="https://hd1611756908.github.io/"> CRM</a>&nbsp; Powered By &nbsp;<a href="https://space.bilibili.com/514155929/" target="_blank" title="枫桥夜泊">枫桥夜泊</a></p>
         </div>
      </div>
      
    </aside>
    <!--End 左侧导航-->
    
    <!--头部信息-->
    <header class="lyear-layout-header">
      
      <nav class="navbar navbar-default">
        <div class="topbar">
          
          <div class="topbar-left">
            <div class="lyear-aside-toggler">
              <span class="lyear-toggler-bar"></span>
              <span class="lyear-toggler-bar"></span>
              <span class="lyear-toggler-bar"></span>
            </div>
            <span class="navbar-page-title"> 线索 - 线索列表 </span>
          </div>
          
          <ul class="topbar-right">
            
            <!-- 用户信息start -->
            <jsp:include page="common/userinfo.jsp"></jsp:include>
            <!-- 用户信息start -->
            
            <!--切换主题配色-->
		    <li class="dropdown dropdown-skin">
			  <span data-toggle="dropdown" class="icon-palette"><i class="mdi mdi-palette"></i></span>
			  <ul class="dropdown-menu dropdown-menu-right" data-stopPropagation="true">
                <li class="drop-title"><p>主题</p></li>
                <li class="drop-skin-li clearfix">
                  <span class="inverse">
                    <input type="radio" name="site_theme" value="default" id="site_theme_1" checked>
                    <label for="site_theme_1"></label>
                  </span>
                  <span>
                    <input type="radio" name="site_theme" value="dark" id="site_theme_2">
                    <label for="site_theme_2"></label>
                  </span>
                  <span>
                    <input type="radio" name="site_theme" value="translucent" id="site_theme_3">
                    <label for="site_theme_3"></label>
                  </span>
                </li>
			    <li class="drop-title"><p>LOGO</p></li>
				<li class="drop-skin-li clearfix">
                  <span class="inverse">
                    <input type="radio" name="logo_bg" value="default" id="logo_bg_1" checked>
                    <label for="logo_bg_1"></label>
                  </span>
                  <span>
                    <input type="radio" name="logo_bg" value="color_2" id="logo_bg_2">
                    <label for="logo_bg_2"></label>
                  </span>
                  <span>
                    <input type="radio" name="logo_bg" value="color_3" id="logo_bg_3">
                    <label for="logo_bg_3"></label>
                  </span>
                  <span>
                    <input type="radio" name="logo_bg" value="color_4" id="logo_bg_4">
                    <label for="logo_bg_4"></label>
                  </span>
                  <span>
                    <input type="radio" name="logo_bg" value="color_5" id="logo_bg_5">
                    <label for="logo_bg_5"></label>
                  </span>
                  <span>
                    <input type="radio" name="logo_bg" value="color_6" id="logo_bg_6">
                    <label for="logo_bg_6"></label>
                  </span>
                  <span>
                    <input type="radio" name="logo_bg" value="color_7" id="logo_bg_7">
                    <label for="logo_bg_7"></label>
                  </span>
                  <span>
                    <input type="radio" name="logo_bg" value="color_8" id="logo_bg_8">
                    <label for="logo_bg_8"></label>
                  </span>
				</li>
				<li class="drop-title"><p>头部</p></li>
				<li class="drop-skin-li clearfix">
                  <span class="inverse">
                    <input type="radio" name="header_bg" value="default" id="header_bg_1" checked>
                    <label for="header_bg_1"></label>                      
                  </span>                                                    
                  <span>                                                     
                    <input type="radio" name="header_bg" value="color_2" id="header_bg_2">
                    <label for="header_bg_2"></label>                      
                  </span>                                                    
                  <span>                                                     
                    <input type="radio" name="header_bg" value="color_3" id="header_bg_3">
                    <label for="header_bg_3"></label>
                  </span>
                  <span>
                    <input type="radio" name="header_bg" value="color_4" id="header_bg_4">
                    <label for="header_bg_4"></label>                      
                  </span>                                                    
                  <span>                                                     
                    <input type="radio" name="header_bg" value="color_5" id="header_bg_5">
                    <label for="header_bg_5"></label>                      
                  </span>                                                    
                  <span>                                                     
                    <input type="radio" name="header_bg" value="color_6" id="header_bg_6">
                    <label for="header_bg_6"></label>                      
                  </span>                                                    
                  <span>                                                     
                    <input type="radio" name="header_bg" value="color_7" id="header_bg_7">
                    <label for="header_bg_7"></label>
                  </span>
                  <span>
                    <input type="radio" name="header_bg" value="color_8" id="header_bg_8">
                    <label for="header_bg_8"></label>
                  </span>
				</li>
				<li class="drop-title"><p>侧边栏</p></li>
				<li class="drop-skin-li clearfix">
                  <span class="inverse">
                    <input type="radio" name="sidebar_bg" value="default" id="sidebar_bg_1" checked>
                    <label for="sidebar_bg_1"></label>
                  </span>
                  <span>
                    <input type="radio" name="sidebar_bg" value="color_2" id="sidebar_bg_2">
                    <label for="sidebar_bg_2"></label>
                  </span>
                  <span>
                    <input type="radio" name="sidebar_bg" value="color_3" id="sidebar_bg_3">
                    <label for="sidebar_bg_3"></label>
                  </span>
                  <span>
                    <input type="radio" name="sidebar_bg" value="color_4" id="sidebar_bg_4">
                    <label for="sidebar_bg_4"></label>
                  </span>
                  <span>
                    <input type="radio" name="sidebar_bg" value="color_5" id="sidebar_bg_5">
                    <label for="sidebar_bg_5"></label>
                  </span>
                  <span>
                    <input type="radio" name="sidebar_bg" value="color_6" id="sidebar_bg_6">
                    <label for="sidebar_bg_6"></label>
                  </span>
                  <span>
                    <input type="radio" name="sidebar_bg" value="color_7" id="sidebar_bg_7">
                    <label for="sidebar_bg_7"></label>
                  </span>
                  <span>
                    <input type="radio" name="sidebar_bg" value="color_8" id="sidebar_bg_8">
                    <label for="sidebar_bg_8"></label>
                  </span>
				</li>
			  </ul>
			</li>
            <!--切换主题配色-->
          </ul>
          
        </div>
      </nav>
      
    </header>
    <!--End 头部信息-->
    
    <!--页面主要内容-->
    <main class="lyear-layout-content">
      
      <div class="container-fluid">
        
        
        <div class="row">
		  <div class="col-lg-12">
			<div class="card">
			  <div class="card-toolbar clearfix">
				<form class="pull-right search-bar" method="get" action="#!" role="form">
				  <div class="input-group">
					<input type="text" class="form-control" value="" name="keyword" placeholder="请输入线索">
					<div class="input-group-btn">
					  <button class="btn btn-dark" type="button">搜索</button>
					</div>
				  </div>
				</form>
				<div class="toolbar-btn-action">
				  <a class="btn btn-primary m-r-5" href="thread_add.html"><i class="mdi mdi-plus"></i> 新增</a>
				  <a class="btn btn-info m-r-5" href="#!"><i class="mdi mdi-check"></i> 导出</a>
				  <a id="btnDel" class="btn btn-danger" href="#!"><i class="mdi mdi-window-close"></i> 删除</a>
				</div>
			  </div>
			  <div class="card-body">
				
				<div class="table-responsive">
				  <table class="table table-hover">
					<thead>
					  <tr>
						<th>
						  <label class="lyear-checkbox checkbox-primary">
							<input type="checkbox" id="check-all"><span></span>
						  </label>
						</th>
						<th>线索名称</th>
						<th>手机</th>
						<th>负责人</th>
						<th>创建人</th>
						<th>线索来源</th>
						<th>客户行业</th>
						<th>客户级别</th>
						<th>创建时间</th>
						<th>更新时间</th>
						<th>下次联系时间</th>
						<th>操作</th>
					  </tr>
					</thead>
					<tbody>
					  <tr>
						<td>
						  <label class="lyear-checkbox checkbox-primary">
							<input type="checkbox" name="ids[]" value="1001"><span></span>
						  </label>
						</td>
						<td>广东文化科技</td>
						<td>13598745412</td>
						<td>张三</td>
						<td>金庸</td>
						<td>转介绍</td>
						<td>金融业</td>
						<td>B（普通客户）</td>
						<td>2012-12-12</td>
						<td>2012-12-12</td>
						<td>2012-12-12</td>
						<td>
						  <div class="btn-group">
							<a class="btn btn-xs btn-default" href="thread_update.html" title="编辑" data-toggle="tooltip"><i class="mdi mdi-pencil"></i></a>
							<a class="btn btn-xs btn-default" href="#!" title="删除" data-toggle="tooltip"><i class="mdi mdi-window-close"></i></a>
						  </div>
						</td>
					  </tr>
					  <tr>
						<td>
						  <label class="lyear-checkbox checkbox-primary">
							<input type="checkbox" name="ids[]" value="1002"><span></span>
						  </label>
						</td>
						<td>广东文化科技</td>
						<td>13598745412</td>
						<td>张三</td>
						<td>金庸</td>
						<td>转介绍</td>
						<td>金融业</td>
						<td>B（普通客户）</td>
						<td>2012-12-12</td>
						<td>2012-12-12</td>
						<td>2012-12-12</td>
						<td>
						  <div class="btn-group">
							<a class="btn btn-xs btn-default" href="#!" title="编辑" data-toggle="tooltip"><i class="mdi mdi-pencil"></i></a>
							<a class="btn btn-xs btn-default" href="#!" title="删除" data-toggle="tooltip"><i class="mdi mdi-window-close"></i></a>
						  </div>
						</td>
					  </tr>
					  
					</tbody>
				  </table>
				</div>
				<ul class="pagination">
				  <li class="disabled"><span>«</span></li>
				  <li class="active"><span>1</span></li>
				  <li><a href="#1">2</a></li>
				  <li><a href="#1">3</a></li>
				  <li><a href="#1">4</a></li>
				  <li><a href="#!">»</a></li>
				</ul>
	   
			  </div>
			</div>
		  </div>
		</div>
      </div>
    </main>
    <!--End 页面主要内容-->
  </div>
</div>

<script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/main.min.js"></script>
<!--图表插件-->
<script type="text/javascript" src="${pageContext.request.contextPath }/js/Chart.js"></script>
<script src="${pageContext.request.contextPath }/js/jconfirm/jquery-confirm.min.js"></script>
<script type="text/javascript">
	
	$(function(){
		/* 删除提示框生成 */
		$('#btnDel').on('click', function () {
			
			
			//获取被选中的多选框
			var cks = $("input[type='checkbox']:checked").not($("#check-all"));
			for(var i=0;i<cks.length;i++){
				console.log(cks[i].value);
			}
			
		    $.confirm({
		        title: '删除',
		        content: '是否确认删除?',
		        type: 'red',
		        typeAnimated: true,
		        buttons: {
		            tryAgain: {
		                text: '确认',
		                btnClass: 'btn-red',
		                action: function(){
							//当点击确认删除时被执行
							console.log('确认删除....');
							
		                }
		            },
		            close: {
		                text: '关闭'
		            }
		        }
		    });
		});
		
		
		
	});
	
</script>
</body>
</html>